var app = getApp()
Page({
  data: {
    index_news: [],
  },
  onLoad:function(option){
    var that=this;
    wx.request({
      url: 'http://127.0.0.1:8080/queryMessage',
      data: { viewId: option.viewId },
      header: {
        'content-type': 'application/json'
      },
      success: function (res) {
        console.log(res.data)
        that.setData({
          index_news: res.data.queryMessageList
        })
      }
    })
  },
})